<%@ page trimDirectiveWhitespaces="true" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<title>岗位管理</title>
<jsp:include page="../../include/header.jsp" />
</head>
<body class="">
	<div class="breadcrumb">
		<span title="" data-original-title="" class="current"><i class="icon-cog icon-large"></i> 岗位管理</span>
	</div>
	<div class="admin-detail-content">
		<div class="buttons">
			<a class="btn btn-success btn-small" href="base/position/position!preUpdate.action">新建岗位</a>
		</div>
		<div class="searchs"></div>
		<div class="">
			<table class="table table-striped">
				<thead>
					<tr>
						<th>编号</th>
						<th>名称</th>
						<th>所属部门</th>
						<th>岗位级别</th>
						<th>定编</th>
						<th>在编</th>
						<th>描述</th>
						<th>&nbsp;</th>
					</tr>
				</thead>
				<tbody>
				<c:forEach var="position" items="${positions}">
					<tr>
						<td>${position.code}</td>
						<td><a href="base/position/position!view.action?id=${position.id}">${position.name}</a></td>
						<td>${position.department.name}</td>
						<td>${position.rank.name}</td>
						<td>${position.maxSize}</td>
						<td>${position.description}</td>
						<td>
							<a class="btn btn-danger btn-small delete" positionId="${position.id}" href="javascript:;">删除</a>
						</td>
					</tr>
				</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
	<div id="modalConfirmDeletePosition" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			<h3 id="myModalLabel">对话框</h3>
		</div>
		<div class="modal-body">
			<p>确定删除该岗位?</p>
		</div>
		<div class="modal-footer">
			<button class="btn btn-danger btn-small" id="btnConfirmDeletePosition" positionId="">确定</button>
			<button class="btn btn-success btn-small" data-dismiss="modal" aria-hidden="true">取消</button>
		</div>
	</div>
</body>
</html>
<script>
	base.position.init();
</script>